Validate OTP Code
GET {{base_url}}/validate-otp/{otpCode}
Description
This API endpoint is used to validate an OTP (One-Time Password) code.
Request
Headers:
| Name | Description |
|---|---|
| tenantId | A string identifying the tenant. |
| countryCode | A string representing the country code. |
Path Parameters:
| Name | Description |
|---|---|
| otpCode | The One-Time Password (OTP) code to validate. |
Responses:
- 200 OK:
{
"status": true,
"statusCode": 0,
"message": "OTP code validated.",
"data": {},
"errors": []
}
- 400 Bad Request:
{
"status": false,
"statusCode": 400,
"message": "Invalid OTP Code.",
"errors": [
{
"message": "Invalid OTP Code.",
"descriptiveMessage": "The provided OTP code is not valid. Please check and try again."
}
]
}
- 404 Not Found:
{
"status": false,
"statusCode": 404,
"message": "OTP Code not found.",
"errors": [
{
"message": "OTP Code not found.",
"descriptiveMessage": "The provided OTP code was not found."
}
]
}
LANGUAGE
CURL REQUEST
curl --request GET \
--url /validate-otp/{otpCode} \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!